body {
  padding: 50px;
}

a {
  color: #00b7ff;
}

.page {
  position: relative;
}

.room {
  background-color: #dddddd;
  font-size: 24px;
  text-align: center;
  font-weight: bold;
}

.room-list {
  position: absolute;
  left: auto;
  right: 0;
  background: #ccc;
  margin: 0;
  padding: 0;
}

.room-list li {
  list-style: none;
  line-height: 24px;
  cursor: pointer;
  text-align: center;
  padding: 5px 12px;
  color: #ffffff;
}

.room-list li.active,
.room-list li:hover {
  background: red;
}

.chat-area {
  width: 690px;
  height: 650px;
  /* background: url('../images/bg.png') no-repeat; */
  background: #ccc;
  margin: 0 auto;
  margin-bottom: 1em;
}

.chat-area ul {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow: auto;
}

.chat-area ul li {
  list-style: none;
  margin: 10px;
  position: relative;
  padding-left: 45px;
  text-align: left;
}

.chat-area ul li.myself {
  padding-right: 54px;
  text-align: right;
}

.chat-area ul li.log {
  color: #ffffff;
  font-size: 14px;
  margin: 5px;
  text-align: center;
}

.chat-area ul li > .head {
  overflow: hidden;
  position: absolute;
  right: auto;
  left: 0;
  top: 10px;
}

.chat-area ul li.myself > .head {
  overflow: hidden;
  position: absolute;
  left: auto;
  right: 0;
  top: 10px;
}

.chat-area ul li > .head > img {
  width: 35px;
  height: 35px;
}

.chat-area ul li > .content .nickname {
  padding-bottom: 5px;
  font-size: 14px;
  color: yellow;
}

.chat-area ul li > .content .text {
  max-width: 60%;
  background: #ffffff;
  color: #232323;
  border-radius: 5px;
  padding: 5px 12px;
  display: inline-block;
  position: relative;
  word-break: break-all;
  text-align: left;
}

.chat-area ul li > .content .text::after {
  content: '';
  position: absolute;
  left: -5px;
  right: auto;
  top: 10px;
  width: 0;
  height: 0;
  border-width: 5px 5px 5px 0;
  border-style: solid;
  border-color: transparent #ffffff transparent transparent;
  overflow: hidden;
}

.chat-area ul li.myself > .content .text {
  background: #9eea6a;
}

.chat-area ul li.myself > .content .text::after {
  right: -5px;
  left: auto;
  top: 10px;
  border-width: 5px 0px 5px 5px;
  border-style: solid;
  border-color: transparent transparent transparent #9eea6a;
}

#room-list {
  float: right;
  width: 100px;
  height: 300px;
  overflow: auto;
}

#room-list div {
  border-bottom: 1px solid #eee;
}

#room-list div:hover {
  background-color: #ddd;
}

#send-message {
  width: 700px;
  margin-bottom: 1em;
  margin-right: 1em;
}
